package com.ybb.production.responce;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 生产工单对象 garment_production_order
 *
 * @author ruoyi
 * @date 2023-09-06
 */
@Data
public class GarmentProductionCuttingBedByBoltResp {

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "扎号")
    private Long bundleNo;

    @ApiModelProperty(value = "颜色")
    private String color;

    @ApiModelProperty(value = "尺码")
    private String size;

    @ApiModelProperty(value = "件数")
    private Long quantity;

    @ApiModelProperty(value = "总工序数")
    private Long totalProcess;

    @ApiModelProperty(value = "已完成工序数")
    private Long totalCompletedProcess;

    @ApiModelProperty(value = "裁床id")
    private Long cuttingBedId;

    @ApiModelProperty(value = "工序列表")
    private List<ProcessDetail> detail;

    @Data
    public static class ProcessDetail {
        @ApiModelProperty(value = "工序id")
        private Long processId;

        @ApiModelProperty(value = "工序名称")
        private String processName;

        @ApiModelProperty(value = "工价")
        private String price;

        @ApiModelProperty(value = "工序状态")
        private String processStatus;

        @ApiModelProperty(value = "扫菲时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date processCompleteTime;

        @ApiModelProperty(value = "扫菲人id")
        private Long updateBy;

        @ApiModelProperty(value = "扫菲人")
        private String updateByName;

        @ApiModelProperty(value = "备注")
        private String remark;
    }
}
